/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring.servicios;

import com.spring.DAO.ClienteDAO;
import com.spring.entidades.Cliente;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author jerick
 */
@Service
public class ServicioCliente {
        @Autowired
    private ClienteDAO cdao;

    public List<Cliente> getListarCliente() {
        return cdao.getListarCliente();
    }

    public List<Cliente> getlistabuscar_cliente(String emp) {
        return cdao.getlistabuscar_cliente(emp);
    }

    public boolean insertarCliente(Cliente emp) {
        return cdao.insertarCliente(emp);
    }

    public boolean eliminarCliente(String codigo) {
        return cdao.eliminarCliente(codigo);
    }
    
}
